package com.jindy.module.oaPayApproval.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.oaPayApproval.mapper.SyPayDetailMapper;
import com.jindy.module.oaPayApproval.domain.SyPayDetail;
import com.jindy.module.oaPayApproval.service.ISyPayDetailService;

/**
 * 报销明细Service业务层处理
 * 
 * @author jindy
 * @date 2023-06-16
 */
@Service
public class SyPayDetailServiceImpl implements ISyPayDetailService 
{
    @Autowired
    private SyPayDetailMapper syPayDetailMapper;

    /**
     * 查询报销明细
     * 
     * @param id 报销明细主键
     * @return 报销明细
     */
    @Override
    public SyPayDetail selectSyPayDetailById(Long id)
    {
        return syPayDetailMapper.selectSyPayDetailById(id);
    }

    /**
     * 查询报销明细列表
     * 
     * @param syPayDetail 报销明细
     * @return 报销明细
     */
    @Override
    public List<SyPayDetail> selectSyPayDetailList(SyPayDetail syPayDetail)
    {
        return syPayDetailMapper.selectSyPayDetailList(syPayDetail);
    }

    /**
     * 新增报销明细
     * 
     * @param syPayDetail 报销明细
     * @return 结果
     */
    @Override
    public int insertSyPayDetail(SyPayDetail syPayDetail)
    {
        return syPayDetailMapper.insertSyPayDetail(syPayDetail);
    }

    /**
     * 修改报销明细
     * 
     * @param syPayDetail 报销明细
     * @return 结果
     */
    @Override
    public int updateSyPayDetail(SyPayDetail syPayDetail)
    {
        return syPayDetailMapper.updateSyPayDetail(syPayDetail);
    }

    /**
     * 批量删除报销明细
     * 
     * @param ids 需要删除的报销明细主键
     * @return 结果
     */
    @Override
    public int deleteSyPayDetailByIds(Long[] ids)
    {
        return syPayDetailMapper.deleteSyPayDetailByIds(ids);
    }

    /**
     * 删除报销明细信息
     * 
     * @param id 报销明细主键
     * @return 结果
     */
    @Override
    public int deleteSyPayDetailById(Long id)
    {
        return syPayDetailMapper.deleteSyPayDetailById(id);
    }

    @Override
    public List<SyPayDetail> selectSyPayDetailsListByIds(Long[] ids) {
        return syPayDetailMapper.selectSyPayDetailsListByIds(ids);
    }
}
